import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
// import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'ic:baseline-manage-history',
      keepAlive: true,
      order: 10,
      title: '订单管理',
    },
    name: 'ShopOrder',
    path: '/shopOrder',
    redirect: '/shop-order/up-shop-orders',
    children: [
      {
        meta: {
          title: '订单列表',
          // hideInMenu: true,
        },
        name: 'upShopOrder',
        path: '/shop-order/up-shop-orders',
        component: () => import('#/views/ShopOrder/orderList.vue'),
      },
      {
        meta: {
          title: '售后列表',
          // hideInMenu: true,
        },
        name: 'AsList',
        path: '/shop-as/as-list',
        component: () => import('#/views/shopAs/index.vue'),
      },
    ],
  },
];

export default routes;
